package cn.lsj.lock;


import cn.lsj.lock.config.LockDefinition;
import com.google.common.base.Objects;

public class LockAttribute extends LockDefinition {
    private String lockName;

    public String getLockName() {
        return lockName;
    }

    public void setLockName(String lockName) {
        this.lockName = lockName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        LockAttribute that = (LockAttribute) o;
        return Objects.equal(lockName, that.lockName);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(lockName);
    }
}
